package com.tinycloud.miracll.finance.service.impl;

import java.util.List;

import com.tinycloud.common.datasource.annotation.Slave2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.tinycloud.miracll.finance.mapper.SapProductionOrderMapper;
import com.tinycloud.miracll.finance.domain.SapProductionOrder;
import com.tinycloud.miracll.finance.service.ISapProductionOrderService;

/**
 * sap订单Service业务层处理
 * 取sap订单信息  用于本地sap订单同步
 * @author tiny
 * @date 2021-09-05
 */
@Service
@Slave2
public class SapProductionOrderServiceImpl implements ISapProductionOrderService 
{
    @Autowired
    private SapProductionOrderMapper sapProductionOrderMapper;


    /**
     * 查询sap订单列表
     * 
     * @param sapProductionOrder sap订单
     * @return sap订单
     */
    @Override
    public List<SapProductionOrder> selectSapProductionOrderList(SapProductionOrder sapProductionOrder)
    {
        return sapProductionOrderMapper.selectSapProductionOrderList(sapProductionOrder);
    }



    public List<String> getAllProductNum(String[] itemNames) {
        return sapProductionOrderMapper.getAllProductNum(itemNames);
    }

}
